home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
007
/
c80tcog.lbr
/
OSSCREEN.CQ
/
osscreen.c
Wrap
Text File
|
1985-08-09
|
2KB
|
118 lines
/*
Osborne 1 - position cursor at row v, column h
Contributed by Les Johnson, Rochester, NY
*/
cursor(v,h)
char v,h; {
v +=32; /* C shorthand for "v = v + 32" */
h +=32;
putchar(27);
putchar(61); /* 0x3d would work as well */
putchar(v);
putchar(h);
}
/* ***************************************************************** */
/*
Osborne 1 Console Controls
1/25/83 Harvey G. Lord
set screen size at vertically v, horizontally h
*/
screen(v,h)
char v,h;
{
v +=32; /* that is, "v = v + 32" */
h +=32;
putchar(27);
putchar(83);
putchar(v);
putchar(h);
}
lowinten() /* begin low intensity display */
{
putchar(27);
putchar(41);
}
hiinten() /* end low intensity display */
{
putchar(27);
putchar(40);
}
graph() /* begin graphics mode */
{
putchar(27);
putchar(103);
}
nograph() /* end graphics mode */
{
putchar(27);
putchar(71);
}
undrln() /* begin underlining */
{
putchar(27);
putchar(108);
}
noundrln() /* end underlining */
{
putchar(27);
putchar(109);
{
clrend() /* clear to end of line */
{
putchar(27);
putchar(84);
}
lockky() /* lock keyboard */
{
putchar(27);
putchar(35);
}
unlockky() /* unlock keyboard */
{
putchar(27);
putchar(34);
}
insrtchr() /* insert character */
{
putchar(27);
putchar(81);
}
insrtln() /* insert line */
{
putchar(27);
putchar(69);
}
delchar() /* delete character */
{
putchar(27);
putchar(87);
}
delline() /* delete line */
{
putchar(27);
putchar(82);
}
#define CLS putchar(26) /* clear screen */
#include "printf.c" /* usually needed */